package com.sky.dto;

import com.sky.pojo.SetmealDish;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel("新增套餐参数模型")
public class SetmealDTO implements Serializable {

    @ApiModelProperty(value = "套餐id",required = false)
    private Long id;
    @ApiModelProperty(value = "套餐分类id",required = true)
    @NotNull(message = "必须选择一个分类")
    //分类id
    private Long categoryId;
    @ApiModelProperty(value = "套餐名称",required = true)
    @NotBlank(message = "套餐名称不能为空")
    //套餐名称
    private String name;
    @ApiModelProperty(value = "套餐价格",required = true)
    @NotNull(message = "套餐价格大于等于0")
    //套餐价格
    private BigDecimal price;
    @ApiModelProperty(value = "套餐状态",required = true)
    //状态 0:停用 1:启用
    private Integer status;
    @ApiModelProperty("套餐描述")
    //描述信息
    private String description;
    @ApiModelProperty(value = "套餐图片",required = true)
    @NotBlank(message = "套餐图片不能为空")
    //图片
    private String image;
    @ApiModelProperty("套餐制作时间")
    //  菜品制作时间 前端传递分钟数
    private Integer makeTime;
    @ApiModelProperty("套餐包含的菜品")
    //套餐菜品关系
    private List<SetmealDish> setmealDishes = new ArrayList<>();

    private List<Long> dishList;

}
